Skip to content

test(SDK-553): add PolicyList integration tests#1414

Closed
krisxcrash wants to merge 2 commits intokw/feat/sdk-553-policy-list-functionalfrom
kw/test/sdk-553-policy-list-tests
Closed

test(SDK-553): add PolicyList integration tests#1414
krisxcrash wants to merge 2 commits intokw/feat/sdk-553-policy-list-functionalfrom
kw/test/sdk-553-policy-list-tests

Conversation

@krisxcrash
Copy link
Copy Markdown
Contributor

@krisxcrash krisxcrash commented Mar 30, 2026

Summary

  • 15 integration tests for the PolicyList functional component using MSW API mocks
  • Covers rendering (policy names, enrolled counts, "All employees", empty state), navigation events (TIME_OFF_CREATE_POLICY, TIME_OFF_VIEW_POLICY), and delete flow (dialog, deactivate API, success alert, cancel)

Test plan

  • All 15 new tests pass
  • Full suite: 1866 tests, 163 files, 0 failures
  • Pre-commit hooks pass

@krisxcrash krisxcrash marked this pull request as draft March 30, 2026 20:44
@krisxcrash krisxcrash self-assigned this Mar 30, 2026
@krisxcrash krisxcrash force-pushed the kw/feat/sdk-553-policy-list-functional branch from a4110ff to 8a68f32 Compare March 30, 2026 20:46
@krisxcrash krisxcrash force-pushed the kw/test/sdk-553-policy-list-tests branch from 14f255b to e816471 Compare March 30, 2026 20:47
@krisxcrash krisxcrash force-pushed the kw/feat/sdk-553-policy-list-functional branch from 8a68f32 to c4106ab Compare April 6, 2026 22:50
@krisxcrash krisxcrash force-pushed the kw/test/sdk-553-policy-list-tests branch from e816471 to d676401 Compare April 6, 2026 22:59
Replace the stub PolicyList with a real implementation that fetches
time off policies and active employees, computes enrolled display
strings, and handles create/edit/finish-setup/delete actions via
PolicyListPresentation with baseSubmitHandler error handling and
query cache invalidation.
@krisxcrash krisxcrash force-pushed the kw/feat/sdk-553-policy-list-functional branch from 1146845 to e6e7fd8 Compare April 6, 2026 23:24
Cover rendering (policy names, enrolled counts, empty state), navigation
events (create, edit, finish-setup), and delete flow (dialog open/close,
deactivate API call, success alert) using MSW mocks.
@krisxcrash krisxcrash force-pushed the kw/test/sdk-553-policy-list-tests branch from d676401 to 734c718 Compare April 6, 2026 23:27
@krisxcrash krisxcrash force-pushed the kw/feat/sdk-553-policy-list-functional branch from e6e7fd8 to e2b0907 Compare April 6, 2026 23:41
@krisxcrash
Copy link
Copy Markdown
Contributor Author

Replaced by #1478 (rebased onto #1479)

@krisxcrash krisxcrash closed this Apr 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant